package com.kavin.feign.controller;

import com.kavin.core.data.DataObject;
import com.kavin.feign.interfaces.OrderFeignClient;
import com.kavin.feign.interfaces.UcenterFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.crypto.Data;

/**
 * @author kavin
 * @Description
 * @create 2020/6/29
 **/
@RestController
@RequestMapping("/ajax")
public class AjaxController {

    @Autowired
    private OrderFeignClient order;

    @RequestMapping("/common")
    public DataObject login(DataObject dataObject){
        return order.commonAjax("order","callUI",dataObject);
    }



}
